package game.view.scene
{
	import iso.IsoScene;
	import iso.IsoSprite;

	public class SceneView extends IsoScene
	{
		private var _isAutoDepthSort:Boolean;
		
		public function SceneView(isAutoDepthSort:Boolean=true, isDrawFloor:Boolean=false)
		{
			super(isAutoDepthSort, isDrawFloor);
			_isAutoDepthSort=isAutoDepthSort;
		}
		
		/**
		 *增加至地图物件层
		 */		
		public function addPlayer(gamePlayer:IsoSprite):void
		{
			_assetLayer.addChild(gamePlayer);
			_assetArray.push(gamePlayer);
			if(_isAutoDepthSort) depthSort();
		}
	}
}